<?php
require_once '../includes/global.php';
if ($_GET['op'] == 'check_booking') {
    /*
     * 定单
     * Autor ZuoLong Wang
     *
     */
    $sql = "SELECT count(*) as num FROM lm_booking where 1 and del!=1 and sortid=37 and status=1 ";
    $booking = Dz($sql);
    if ($booking[0]['num'] > 0) {
        echo ("您有{$booking[0]['num']}条房型定单未处理!\n");
    }
    /**
     * 套餐定单
     */
    $sql = "SELECT count(*) as num FROM lm_booking where 1 and del!=1 and sortid=41 and status=1 ";
    $booking = Dz($sql);
    if ($booking[0]['num'] > 0) {
        echo ("您有{$booking[0]['num']}条套餐定单未处理!\n");
    }
    exit;
}
Tr("{				title:'综合信息管理',
					border:false,
					html:'<div id=\"tree-div\" style=\"overflow:auto;width:100%;height:100%\"></div>',
					iconCls:'I_info',
							tools:[{
								id:'refresh',
								qtip: '刷新',
								handler:function(event, toolEl, panel){
									root.reload();
								}
							}]
			    },{
					title:'我的网络办公室',
					border:false,
					iconCls:'I_message',
					html:'<div id=\"tree\" style=\"overflow:auto;width:100%;height:100%\"></div>',
							tools:[{
								id:'refresh',
								qtip: '刷新',
								handler:function(event, toolEl, panel){
									root2.reload();
								}
							}]
			    },{
					title:'综合系统设置',
					border:false,
					iconCls:'I_config',
					html:'<div id=\"tree3\" style=\"overflow:auto;width:100%;height:100%\"></div>',
							tools:[{
								id:'refresh',
								qtip: '刷新',
								handler:function(event, toolEl, panel){
									root3.reload();
								}
							}]
			    }", 'yi');
Ts('admin/index.html');
$temp = Dgs('info', "shuser like '" . $_SESSION[userinfo][user] . "'");
if ($temp) {
    $num = count($temp);
    Ja("你一共有" . $num . "条信息等待审核");
}
